<?php $path = base_url().'public/frontend/';?>
<h2 class="title text-center">EDIT INFORMATION</h2>
<section id="form" style="margin-bottom: 15px;
                        margin-top: 15px;">
    <div class="row">
        <div class="login-form">
            <form method="post">
                <div class="row" style="width: 800px;min-height: 200px;margin-left: 20px">
                    <div class="col-sm-4">
                        <h2 style="margin-top: 10px; margin-bottom: 10px">Full Name: </h2>
                        <h2 style="margin-top: 25px; margin-bottom: 10px">Gender: </h2>
                        <h2 style="margin-top: 25px; margin-bottom: 10px">Date of Birth: </h2>
                        <h2 style="margin-top: 27px; margin-bottom: 10px">Address: </h2>
                        <h2 style="margin-top: 27px; margin-bottom: 10px">Cellphone: </h2>
                        <h2 style="margin-top: 27px; margin-bottom: 10px">Email: </h2>
                        <h2 style="margin-top: 27px; margin-bottom: 10px">ID Card: </h2>
                    </div>
                    <div class="col-sm-8">
                        <input type="text" name="fullname" placeholder="Full Name *" value="<?php echo $full_name?>"/>
                        <div class="error" id="fullname_error"><?php echo form_error('fullname')?></div>
                        <select name="gender" style="height: 40px;margin-bottom: 5px">
                            <option value="1" <?php if ($gender == 1) echo "selected"; ?>>Male</option>
                            <option value="0" <?php if ($gender == 0) echo "selected"; ?>>Female</option>
                        </select>
                        <div class="error" id="gender_error"><?php echo form_error('gender')?></div>
                        <input type="text" name="dob" placeholder="Date of Birth *" onfocus="(this.type='date')" onblur="(this.type='text')" value="<?php echo $date_of_birth?>"/>
                        <div class="error" id="dob_error"><?php echo form_error('dob')?></div>
                        <input type="text" name="address1" placeholder="Address *" value="<?php echo $address?>"/>
                        <div class="error" id="address1_error"><?php echo form_error('address1')?></div>
                        <input type="text" name="tel" placeholder="Cellphone Number" value="<?php echo $tel?>"/>
                        <input type="email" name="email" placeholder="Email *" value="<?php echo $email?>"/>
                        <div class="error" id="email_error"><?php echo form_error('email')?></div>
                        <input type="text" name="idcard" placeholder="Identification Number" value="<?php echo $id_card?>"/>
                        <div class="error" id="idcard_error"><?php echo form_error('idcard')?></div>
                        <button type="submit" name="submit" value="update" class="btn btn-default">Update</button>
                    </div>

                </div>
                <div class="row" style="width: 800px;height: 200px;margin-left: 20px; margin-top: 20px">
                    <div class="col-sm-4">
                        <h2 style="margin-top: 20px; margin-bottom: 10px">Old Password: </h2>
                        <h2 style="margin-top: 25px; margin-bottom: 10px">New Password: </h2>
                        <h2 style="margin-top: 25px; margin-bottom: 10px">Confirm Password: </h2>
                    </div>
                    <div class="col-sm-8">
                        <input type="password" style="margin-top: 10px" name="old_password" placeholder="Old Password *" value="<?php echo set_value('password')?>"/>
                        <div class="error" id="old_password_error"><?php echo form_error('old_password')?></div>
                        <input type="password" style="margin-top: 10px" name="password" placeholder="New Password *" value="<?php echo set_value('password')?>"/>
                        <div class="error" id="password_error"><?php echo form_error('password')?></div>
                        <input type="password" name="repassword" placeholder="Confirm Password*" value="<?php echo set_value('repassword')?>"/>
                        <button type="submit" name="submit" value="change_password" class="btn btn-default">Change Password</button>
                    </div>

                </div>
            </form>
        </div>
    </div>
    <script>

    </script>
</section>